import {getCurrentWindow, Window} from "@tauri-apps/api/window";
import {Webview} from "@tauri-apps/api/webview";
import {WebviewWindow} from "@tauri-apps/api/webviewWindow";
import {sendVideoMessage} from "./send_video_message.ts";

export function openVideoWindow(isSender:boolean=false) {
    // window successfully created
    let webviewWindow = new WebviewWindow('mediaWebviewWindow',{
        url:'/media?isSender='+isSender,
        width: 400,
        height: 300,
        parent: getCurrentWindow(),
        transparent: true,
        resizable: false,
        shadow: false,
        alwaysOnTop: true,
        focus: true,
        fullscreen: false,
        decorations: true,
        closable: true,
    });
}